<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
	   	
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			<th>ID</th>
			<th>商品名称</th>
			<th>价格</th>
			<th>库存</th>
			<th>点击次数</th>
			 <th width="210">操作</th>
			</tr>
			{{foreach from="$goods" key = "$k" value="$v"}}
			<tr>
			<td>{{$v['g_id']}}</td>
			<td>{{$v['g_name']}}</td>
			<td>
				市场价：￥<del>{{$v['g_marketprice']}}</del>
			<div>商城价：￥{{$v['g_shopprice']}}</div></td>
			<td>{{$v['g_stock']}}</td>
			<td>{{$v['g_click']}}</td>
			
			<td>
		<a href="{{U('GoodsList/index',array('gid'=>$v['g_id'],'tid'=>$v['g_tid']))}}" class="btn btn-sm btn-primary">货品列表</a>
		<a href="{{U('edit',array('gid'=>$v['g_id']))}}" class="btn btn-sm btn-warning">编辑</a>
		<a href="{{U('del',array('gid'=>$v['g_id']))}}" class="btn btn-sm btn-danger">删除</a>
		</td>
			</tr>
		{{endforeach}}
		</table>
		<style type="text/css">
			.page li{
				margin-right: 0;
			}
		</style>
		<center>
			<div class="page pagination">
				<ul>
					{{$page}}
				</ul>
			</div>
		</center>
	</body>
</html>
